package com.eastfair.imaster.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.imaster.enumeration.BusinResourceCorrelationTypeEnum;
import com.eastfair.imaster.enumeration.BusinResourceResourceTypeEnum;
import com.eastfair.imaster.enumeration.BusinResourceStatusEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 业务资源表
 * </p>
 *
 * @author ligang
 * @since 2022-03-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "BusinResourcePageQuery", description = "业务资源表")
public class BusinResourcePageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 关联身份#{user:用户;exhibitor:展商;project:项目;sponsor:主办}
     */
    @ApiModelProperty(value = "关联身份#{user:用户;exhibitor:展商;project:项目;sponsor:主办}")
    private BusinResourceCorrelationTypeEnum correlationType;
    /**
     * 关联ID
     */
    @ApiModelProperty(value = "关联ID")
    private Long correlationId;
    /**
     * 资源类型#{news:新闻;video:视频;data:资料}
     */
    @ApiModelProperty(value = "资源类型#{news:新闻;video:视频;data:资料}")
    private BusinResourceResourceTypeEnum resourceType;
    /**
     * 资源标题
     */
    @ApiModelProperty(value = "资源标题")
    private String title;
    /**
     * 富文本
     */
    @ApiModelProperty(value = "富文本")
    private String richText;
    /**
     * 附属业务详情json格式
     */
    @ApiModelProperty(value = "附属业务详情json格式")
    private String businDetails;
    /**
     * 文件地址 数组
     */
    @ApiModelProperty(value = "文件地址 数组")
    private String url;
    /**
     * 状态 #{normal:正常;wait_init:待初始化;forbidden:禁用;waiting:待审核;refuse:拒绝}
     */
    @ApiModelProperty(value = "状态 #{normal:正常;wait_init:待初始化;forbidden:禁用;waiting:待审核;refuse:拒绝}")
    private BusinResourceStatusEnum status;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sequence;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer isEnable;
    /**
     * 是否删除(默认0：未删除1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除1:已删除)")
    private Integer isDeleted;
    /**
     * 是否上下架 1是 0否
     */
    @ApiModelProperty(value = "是否上下架 1是 0否")
    private Integer isShelves;

}
